<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<base href="<%=basePath %>" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>农资与农产品全程供应链物流平台-编辑用户</title>
<meta name="kewywords" content="农资与农产品全程供应链物流平台"/>
<meta name="description" content="农资与农产品全程供应链物流平台"/>
<link href="css/style.css" type="text/css" rel="stylesheet"/>
<script type="text/javascript" src="js/jquery-1.9.1.js"></script>
	<script type="text/javascript">
		function saveCheck(){			
			if($("#cardNo").val() == ""){
				alert("请填写身份证号码");
				return;
			}
			if($("#job").val() == ""){
				alert("请填写职位");
				return;
			}
			if($("#area").val() == ""){
				alert("请填写区域");
				return;
			}
			if($("#phone").val() == ""){
				alert("请填写联系电话");
				return;
			}
			if($("#addre").val() == ""){
				alert("请填写住址");
				return;
			}
			if($("#email").val() == ""){
				alert("请填写email");
				return;
			}
			$("#modifyUser").submit();
		}
	</script>
</head>
<body>
<%@include file="top.jsp" %>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
	<tr>
	    <td width="187" height="37" bgcolor="#e0e0e0" class="brt bbt">
	    	<div class="topleft fl">系统菜单栏</div></td>
	    <td bgcolor="#e7e7e7" class=" bbt">
	    	<div class="topleft fl">您现在的位置：首页&nbsp;>&nbsp;<span>修改用户</span></div>
	    </td>
	</tr>
	<tr>
	    <td width="187" height="100%" valign="top" bgcolor="#FFFFFF" class="brt">
	    	<div class="left_bk">
				<div class="menu2">
	             <%@include file="system_left.jsp" %>        
	        	</div>
	        </div>
	    </td>
	    <td align="left" valign="top" bgcolor="#FFFFFF">
	    	<div class="content">
		    <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
				<tr>
					<td height="38" style="background:url(images/zz_tit.jpg) left top repeat-x;">
						<div class="tt_back fl">修改用户</div>
						<div class="fr">
							<img src="images/tit_right.jpg" alt="" width="103" height="38" />
						</div>
					</td>
		        </tr>
		        <tr>
					<td class="borders btn">
						<table width="100%" border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td bgcolor="#fffeee" style="border-bottom:#fee7bd solid 1px;" >
								   	<form id="modifyUser" action="system/modifyUsers" method="post">
								   	<s:hidden name="id"/>
								    <table border="0" cellspacing="0" cellpadding="0" align="left" style="margin-top:20px;margin-left: 100px;margin-bottom: 20px; " >
				                        <tr style="height: 40px;">
								  			<td align="right" width="200px;">账户：</td>
								  			<td  width="180px;"><input type="text" style="width: 200px;" disabled="disabled" class="input_are w122" id="username" name="username" value="${admininfo.username}"/></td>
								  			<td align="right" width="200px;">姓名：</td>
								  			<td  width="180px;"><input type="text" style="width: 200px;" disabled="disabled" class="input_are w122" id="fullName" name="fullName" value="${admininfo.fullName}"/></td>
								  		</tr>
								  		<tr style="height: 40px;">
								  			<td align="right">密码：</td>
								  			<td width="180px;"><input disabled="disabled" type="password" style="width: 200px;" id="password" class="input_are w122" /></td>
								  		    <td align="right" width="200px;">账户类型：</td>
								  			<td  width="180px;">
								  		      <select name="accountType">
								  			   <s:if test="admininfo.accountType==1">
								  			   <option value="1" selected="selected">系统管理员</option>
								  			      <option value="2" >普通用户</option>
								  			   </s:if>
								  			      <s:elseif test="admininfo.accountType==2">
								  			   <option value="1" >系统管理员</option>
								  			      <option value="2" selected="selected" >普通用户</option>
								  			   </s:elseif>
								  			   </select>
								  			</td>
								  		</tr>
								  		<tr style="height: 40px;">
								  			<td align="right">再次输入密码：</td>
								  			<td width="180px;"><input type="password" disabled="disabled"  style="width: 200px;" id="repassword" class="input_are w122"  /></td>
								  		    <td align="right" width="200px;"> 身份证号码：</td>
								  			<td  width="180px;"><input type="text" style="width: 200px;" class="input_are w122" id="cardNo" name="cardNo" value="${admininfo.cardNo}"/></td>
								  		</tr>
								  		<tr style="height: 40px;">
								  			<td align="right">职位：</td>
								  			<td width="180px;"><input type="text"  style="width: 200px;" id="job" class="input_are w122" name="job" value="${admininfo.job}" /></td>
								  		    <td align="right" width="200px;">所属区域：</td>
								  			<td  width="180px;"><input type="text" style="width: 200px;" class="input_are w122" id="area" name="area" value="${admininfo.area}"/></td>
								  		</tr>
								  		<tr style="height: 40px;">
								  			<td align="right">联系方式：</td>
								  			<td width="180px;"><input type="text" style="width: 200px;" id="phone" class="input_are w122" name="phone" value="${admininfo.phone}" /></td>
								  		    <td align="right">住址：</td>
								  			<td width="180px;"><input type="text" style="width: 200px;" id="addre" class="input_are w122" name="addre" value="${admininfo.addre}" /></td>
								  		</tr>
								  		<tr style="height: 40px;">
								  			<td align="right">E-mail：</td>
								  			<td width="180px;"><input type="text" style="width: 200px;" id="email" class="input_are w122" name="email" value="${admininfo.email}" /></td>
								  		    <td align="right">备注：</td>
								  			<td width="180px;"><input type="text" style="width: 200px;" id="remark" class="input_are w122" name="remark" value="${admininfo.remark}" /></td>
								  		</tr>
								  		<tr style="height: 60px;">
								  			<td colspan="4" align="center">
								  			<input type="button" style="cursor: pointer;" class="buttons" value="保存" onclick="saveCheck()"/>
								  			&nbsp;&nbsp;&nbsp;&nbsp;
								  			<input type="reset" style="cursor: pointer;" class="buttons" value="重 置" /></td>
								  		</tr>
									</table>
									</form>
								</td>
			  				</tr>
						</table>
					</td>
				</tr>
			</table>
			</div>
		</td>
	</tr>
</table>
<div class="bottom">版权所有：安徽朗坤物联网</div>
</body>
</html>